﻿using System;

namespace Zinnia.Caching.Imp
{

    /// <summary>
    /// 缓存上下文简易获取器
    /// </summary>
    public class SimpleAcquireContext : IAcquireContext
    {
        private readonly Action<IVolatileToken> _monitor;
        public SimpleAcquireContext(Action<IVolatileToken> monitor)
        {
            _monitor = monitor;
        }
        public Action<IVolatileToken> Monitor
        {
            get { return _monitor; }
        }
    }
}
